package com.example.goodpet;

import android.app.Application;
import android.content.Context;
import android.os.Handler;

import com.example.goodpet.bean.User;

public class MyApplication extends Application {
    public static Context context;
    public static Handler handler;
    public static Thread mainThread;
    public static int mainThreadId;
    public static User user;
    @Override
    public void onCreate() {
        super.onCreate();
        context=getApplicationContext();
        handler=new Handler();
        mainThread=Thread.currentThread();
        mainThreadId=android.os.Process.myTid();
        //CrashHandler.getInstance().init(this);//产品上线时使用

        

    }

}
